<!-- 系统自动生成 Date:2021-06-11 10:29 -->
<#include "/common/defaultEngine.html"/>
<@pageTheme mark="${config.optimize()?string('true', 'false')}">
<@header title="新增【请填写功能名称】" bodyClass="white-bg" libs=["bootstrapSelect"]/>
<div class="wrapper wrapper-content ibox-content">
<@f.form id="form-sku-add"  class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "accountPeriod"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="accountPeriod"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "addTime"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="addTime"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "collected"/>：
        </label>
        <div class="col-sm-8">
            <input name="collected" class="form-control" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "deleted"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="deleted"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "images"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="images"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "imgsCover"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="imgsCover"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "isDeliver"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="isDeliver"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "isGiftPack"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="isGiftPack"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "isNational"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="isNational"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "isPickUp"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="isPickUp"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "itemStock"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="itemStock"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "mengniuPay"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="mengniuPay"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "minQuantity"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="minQuantity"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "offSaleReason"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="offSaleReason"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "offSaleStatus"/>：
        </label>
        <div class="col-sm-8">
              <#list dict.getType('')>
                <#items as d>
                    <div class="radio-box">
                        <input type="radio" id="offSaleStatus" name="offSaleStatus" value="${d.dictValue}"
                               <#if d.dictValue == sku.offSaleStatus?default("") >checked</#if> />
                        <label for="${(d.id)?default('')}">${d.dictLabel}</label>
                    </div>
                </#items>
            </#list>
        </div>
    </div>
     <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "offlinePay"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="offlinePay"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "oldPrice"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="oldPrice"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "price"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="price"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "priceLabel"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="priceLabel"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "priceSystem"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="priceSystem"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "settlementPrice"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="settlementPrice"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "skuStatus"/>：
        </label>
        <div class="col-sm-8">
              <#list dict.getType('')>
                <#items as d>
                    <div class="radio-box">
                        <input type="radio" id="skuStatus" name="skuStatus" value="${d.dictValue}"
                               <#if d.dictValue == sku.skuStatus?default("") >checked</#if> />
                        <label for="${(d.id)?default('')}">${d.dictLabel}</label>
                    </div>
                </#items>
            </#list>
        </div>
    </div>
     <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "spuId"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="spuId"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "stockCountMode"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="stockCountMode"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "typeCode"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="typeCode"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "unit"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="unit"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "version"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="version"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "detailUrl"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="detailUrl"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "skuComments"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="skuComments"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "skuSales"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="skuSales"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
        <@ctx.i18n text = "skuVisits"/>：
        </label>
        <div class="col-sm-8">
            <@f.input name="skuVisits"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-3 control-label">
            <@ctx.i18n text = "remark"/>：
        </label>
        <div class="col-sm-8">
            <@f.textarea name="remark" />
        </div>
    </div>
</@f.form>
</div>
<@footer>
<script type="text/javascript">
    var prefix = baseURL + "/sku"
    /**表单验证*/
    <@compress single_line=true>
    $("#form-sku-add").validate({
        focusCleanup: true
    });
    </@compress>

    function submitHandler() {
        if (opt.validate.form()) {
            opt.operate.save(prefix + "/add", $('#form-sku-add').serialize());
        }
    }
</script>
</@footer>
</@pageTheme>